<?php

namespace App\Http\Resources\OpenShop\SiteLocation;

use App\Http\Resources\BaseResource;
use Illuminate\Http\Request;

class IntendedSiteSelectionListResource extends BaseResource
{
    /**
     * @param Request $request
     * @return array
     */
    public function toArray($request): array
    {
        return [
            "id"               => $this->id,
            "lat"              => $this->latitude,
            "lng"              => $this->longitude,
            "poiName"          => $this->poiName,
            "poiAddress"       => $this->poiAddress,
            "siteSelectionImg" => $this->siteSelectionImg,
            "createdAtText"    => $this->createdAt->format("Y-m-d H:i:s")
        ];
    }
}
